package org.chaiyi.template.core.common.contract.method;

import org.chaiyi.template.core.common.contract.Contractor;
import org.chaiyi.template.core.common.repository.QueryInfo;
import reactor.core.publisher.Flux;

import static org.chaiyi.template.core.common.contract.Contractor.Error.QUERY_METHOD_NOT_IMPLEMENTED;

public interface QueryContractor<D> extends Contractor {
    default Flux<D> query(String tenantId, String buCode, QueryInfo query) {
        QUERY_METHOD_NOT_IMPLEMENTED.trigger();
        return null;
    }
}
